# -*- coding: utf-8 -*-

#Use function id to identify blocks uniquely
from Simulinux.Core.Element import Element
from Simulinux.Core.Pin import Pin, PIN_INPUT, PIN_OUTPUT

class Block(Element):
    def __init__(self, x, y):
        Element.__init__(self)
        self.pins = []
        self.posx = x
        self.posy = y
    def _create_single_input_pin(self):
        p = Pin(self, PIN_INPUT)
        self.pins.append(p) #change
    def _create_single_output_pin(self):
        p = Pin(self, PIN_OUTPUT)
        self.pins.append(p) #change